package com.hujiang.basic.search.util;


import com.hujiang.basic.framework.core.config.BaseProperties;
import com.hujiang.basic.framework.core.util.IpUtil;

public class IpUtils {

    private static String nodeAddr;

    public static synchronized String getNodeAddr() {
        if (nodeAddr == null) {
            String port = BaseProperties.getString("server.port");
            nodeAddr = IpUtil.getIp() + ":" + port;
        }
        return nodeAddr;
    }
}
